<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function regist(){
		//进行表单验证
		frm.submit();
	}
	function tologin(){
		window.history.back(-1);
	}
</script>
</head>
<body>
	<form action="servlet/RegistServlet" method="post" name="frm">
		用户名：<input type="text" name="username"><br><br>
		密码：<input type="password" name="password"><br><br>
		再次确认密码：<input type="password" name="password2"><br><br>
		性别：
			<input type="radio" name="gender" value=0>男
			<input type="radio" name="gender" value=1>女<br><br>
		手机号：<input type="text" name="phone"><br><br>
		身份证号：<input type="text" name="userid"><br><br>
		邮箱：<input type="text" name="email"><br><br>
		<input type="button" value="注册" onclick="regist()">&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="button" value="取消" onclick="tologin()">
	</form>
</body>
</html>